<%@ Page Language="VB" AutoEventWireup="false" CodeFile="SQViewE.aspx.vb" Inherits="ViewE" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">    
    <link href="ADStyles.css" rel="stylesheet" type="text/css" />
    <title><%=me.FormLabel %></title>
</head>

<script type="text/javascript" language="javascript">
function ShowViewWindow()
{
window.open('SQViewE.aspx?S=<%=me.ServerID %>&D=<%=me.DatabaseID %>&F=1', 'Views', 'width=540,height=600,scrollbars=1,menubar=1,resizable=1;');
return false;  
}

function onLoad()
{
    var TopWindow=top.window.document;
    
    var DashTitle=TopWindow.getElementById('DashboardTitle');
    var DashMode=TopWindow.getElementById('DMode');
    var MyServer=TopWindow.getElementById('SID');
    
    if (DashTitle!=null) DashTitle.innerHTML='<%=me.FormLabel %>';
    if (DashMode!=null) DashMode.value='<%=me.EditMode %>';
    if (MyServer!=null) MyServer.value='<%=me.ServerID %>';
    
    //--Hide toolbar buttons?
    var q=window.location.search;
    var isprint=q.indexOf('&F=');
    
    if (isprint>0)
    {        
        var tb2=document.getElementById('cmdView');
        tb2.style.visibility = 'hidden';
    }
}
</script>

<body onload="onLoad();">
    <form id="form1" runat="server">
    <div>
    <%Me.ShowViewList()%>
    </div>
    
    <div style="position:absolute; top: 19px; left: 350px;">
    
    <a href="" 
        runat="server" 
        id="ARefresh">
    <img src="images/tb_refresh.jpg"   
         title="Refresh"
         alt="Refresh" 
         border="0" />
    </a>
    
    <input 
        type="image" 
        src="images/tb_newwindow.jpg" 
        title="View in seperate window for printing" 
        alt="View in seperate window for printing"
        id="cmdView" 
        name="cmdView" 
        onclick="ShowViewWindow();" />
        
    </div>
    
    <input type="hidden" id="hidSID" runat="server" />
    <input type="hidden" id="hidDID" runat="server" />
    <input type="hidden" id="hidSort" runat="server" />
    </form>
</body>
</html>
